
<ul id="mainnav-menu" class="list-group">
    <li class="list-divider"></li>
    {volist name="defaultmenu" key='ko' id="vo"}
    <!-- <li class="active-sub"> -->
    <li class="" data-id="parent-{$ko}">
        <a href="javascript:;" url="{:url($vo['url'])}"> 
            <i class="fa {$vo.ico}"></i>
            <span class="menu-title">{:lang($vo['name'])}</span>
            <i class="arrow"></i>
        </a>

        {if condition="is_array($vo['child'])"}
        <ul class="collapse in two-level-menu"> <!-- 二级 -->
            {volist name="$vo['child']" key='k' id="v"}
                <li>
                        {if condation="is_array($v['child'])"}
                         <i class="fa {$vo.ico}"></i>
                         <a href="javascript:;" url="" parent-id="parent-{$ko}" id="{$ko}-{$k}" >{:lang($v['name'])}</a>
                         <i class="arrow"></i>
                         <ul class="collapse in "><!-- //三级 -->
                            {volist name="$v['child']" key='kt' id="vt"}
                                <li>
                                     <a href="javascript:;" url="{:url($vt['url'])}" parent-id="parent-{$ko}" id="{$ko}-{$k}-{$kt}" >{:lang($vt['name'])}</a>
                                </li>
                            {/volist}
                        </ul>
                        {else /}
                         <a href="javascript:;" url="{:url($v['url'])}" parent-id="parent-{$ko}" id="{$ko}-{$k}" >{:lang($v['name'])}</a>
                        {/if}
                </li>
            {/volist}
        </ul>
        {/if}
    </li>
    {/volist}

</ul>